package com.jiaozi.base.enums.sys;

import com.jiaozi.base.enums.sys.bean.ITagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumStyle;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 系统状态枚举
 */
@Getter
@AllArgsConstructor
public enum StateEnum implements ITagEnumBean {
    NORMAL("启用",new TagEnumStyle(TagEnumStyle.TagTypeEnum.success)),
    STOP("停用",new TagEnumStyle(TagEnumStyle.TagTypeEnum.danger));

    private  String msg;
    private TagEnumStyle style;


    @Override
    public String toString() {

        return this.name();
    }


    @Override
    public TagEnumBean getTagBean() {
        return new TagEnumBean(this.getMsg(),this.getStyle());
    }
}
